<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title>添加笑话界面</title>
<script type="text/javascript" src="<%=basePath%>js/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript">
		tinyMCE.init({
			mode : "textareas",
			theme : "simple"
		});
	</script>
	<script type="text/javascript">
	function contextinfo(){
		//alert("hfjdhfjh");
		var context=$("#of_desc").val();
		var result = true;
		if(context == ""){
			alert("笑话内容不能为空！ 请输入内容");
			result = false;
		}else{
			result = true;
		}
		return result;
	}
	</script>
	</head>

	<body bgcolor="#FAFBE7">
		<center>
			<form action="addFuning.action" method="post" name="form1">
				<table border="">
					<tr>
						<td>
							笑话内容：
						</td>

						<td align="left">
								<textarea name="of_desc" id="of_desc" rows="5" cols="103"></textarea>
						</td>
					</tr>
					<tr align="right">
						<td colspan="2">
							<input type="submit" value="添加"/>
						</td>
					</tr>
				</table>
			</form>
		</center>
	</body>
</html>
